//
//  KYMVProgressSliderViewController.swift
//  Swift
//
//  Created by zhaopeng on 2020/6/5.
//  Copyright © 2020 zhaopeng. All rights reserved.
//

import UIKit

class KYMVProgressSliderViewController: UIViewController,KYMVProgressSliderDelegate {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        self.view.backgroundColor = UIColor.link
        
        
        let progressView = KYMVProgressSliderView(frame: CGRect(x: 0, y: 200, width: self.view.bounds.size.width, height: 30))
//        progressView.isHiddenSliderView = false
        progressView.progress = 0.5
        progressView.maximumValue = 200
        progressView.delegate = self
        progressView.isContinuous = false
        self.view.addSubview(progressView)
        
    }
    func progressSliderShow(progressView: KYMVProgressSliderView) {
        print("progressSliderShow",progressView.value)
    }
    func progressSliderTouchDown(progressView: KYMVProgressSliderView) {
        print("progressSliderTouchDown",progressView.value)
    }
    
    func progressSliderBegan(progressView: KYMVProgressSliderView) {
        print("progressSliderBegan",progressView.value)
    }
    func progressSliderChanged(progressView: KYMVProgressSliderView) {
        print("progressSliderChanged",progressView.value)
    }
    
    func progressSliderEnded(progressView: KYMVProgressSliderView) {
        print("progressSliderEnded",progressView.value)
    }
    
    
    /*
     // MARK: - Navigation
     
     // In a storyboard-based application, you will often want to do a little preparation before navigation
     override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
     // Get the new view controller using segue.destination.
     // Pass the selected object to the new view controller.
     }
     */
    
}
